//
//  XFYAdaptiveLabel.h
//  SDKSample
//
//  Created by 小肥羊 on 15/7/3.
//  Copyright (c) 2015年 Zhu‘s Game House. All rights reserved.
//

#import <UIKit/UIKit.h>

@class XFYAdaptiveLabel;
@protocol XFYAdaptiveLabelDelegate <NSObject>
- (void)operation:(XFYAdaptiveLabel *)label;
@end

@interface XFYAdaptiveLabel : UIView

@property (nonatomic, retain) id <XFYAdaptiveLabelDelegate> delegate;   /**< 代理 */
@property (strong, nonatomic) UIButton *operationBtn;                   /**< 操作按钮 */
@property (strong, nonatomic) UILabel *textLabel;                       /**< 文本框 */
@property (nonatomic) float labelMaxWidth;                              /**< 最大宽度 */

- (id)initWithPoint:(CGPoint)porint;        /**<  初始化 */

- (void)setText:(NSString *)text;           /**< 设置文字 */

@end


@class XFYFixedLabel;
@protocol XFYFixedLabelDelegate <NSObject>
- (void)fixedOperation:(XFYFixedLabel *)label;
@end

@interface XFYFixedLabel : UIView

@property (nonatomic, retain) id <XFYFixedLabelDelegate> delegate;      /**< 代理 */
@property (strong, nonatomic) UIButton *operationBtn;                   /**< 操作按钮 */
@property (strong, nonatomic) UILabel *textLabel;                       /**< 文本框 */

@end